package com.bbh.plugin.single.privilege.core.service;


import java.util.List;
import java.util.Map;

import com.bbh.plugin.single.privilege.core.vo.tree.OrganizationVo;
import com.bbh.plugin.single.privilege.core.vo.tree.ZTreeNoneAjaxVo;
import com.bbh.plugin.single.privilege.core.entity.Organization;
import com.bbh.plugin.single.privilege.core.repository.OrganizationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.bbh.common.base.service.BaseService;
@Service
@Transactional
public class OrganizationService extends BaseService<Organization,String>{
	
	@Autowired
    OrganizationMapper organizationMapper;
	
	public List<OrganizationVo> findList(Map<String, Object> params) {
		return organizationMapper.findList(params);
	}

	public List<OrganizationVo> findAllList(Map<String, Object> params) {
		return organizationMapper.findAllList(params);
	}


	public  List<ZTreeNoneAjaxVo> selectTreeOrganizationChildren(Map<String,Object> params){

		return organizationMapper.selectTreeOrganizationChildren(params);
	}

}
